package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer id);
    
    UserBean selectByOpenId(@Param("openId") String openId);

    int updateByPrimaryKeySelective(UserBean record);

    int updateByPrimaryKey(UserBean record);
    
    List<UserBean> selectByUserNameAndPwd(@Param("userName") String userName, @Param("pwd") String pwd);

    List<UserBean> listUsers(Page<UserBean> page, @Param("userBean") UserBean userBean);
    
    List<UserBean> getAll();

    int statisUser(@Param("type") int type);
}